# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-taquin
pkgver=3.36.4
pkgrel=0
arch="all !s390x !mips !mips64" # Blocked by librsvg -> rust
url="https://wiki.gnome.org/Apps/Taquin"
pkgdesc="Move tiles so that they reach their places"
license="GPL-3.0-or-later AND CC-BY-SA-3.0"
makedepends="meson ninja itstool vala gtk+3.0-dev librsvg-dev gsound-dev"
checkdepends="appstream-glib desktop-file-utils"
source="https://download.gnome.org/sources/gnome-taquin/${pkgver%.*}/gnome-taquin-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="72e28698e292ec198c77f4f56624bafd88220157582d220ace363e29bb2f3bdbe7198c30348a6aef12e07dce275be6280fd4dc8a6bcc58f31d1e5ef54d0f3f7d  gnome-taquin-3.36.4.tar.xz"
